<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tr09" uri="http://www.51i-star.com/mypagetagsuser" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分页查询会员信息</title>
<style type="text/css">
	body{
		background:#dae4fe;
	}
.t{
		border-collapse: collapse;
		border: none;
		width: 700px;
		font-size:14px;
		margin-top:20px;
	}
	.t td{
		text-align: center;
	}
	.border_bottom_empty{
		background:#CCC;
	}
	.c{
		font-size:14px;
		color:red;
		margin-left:20px;
	}
	tr:hover{
		cursor:pointer;
	}
	h2,table,.pager{
		margin-left:20px;
	}
	.one1{
		font-size:14px;
		font-weight:bold;
		margin:5px;
	}
</style>
<link rel=stylesheet type=text/css href="css/input.css">
<script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
<script>
		$(function(){
			$("tr:even").css("background","#ccffcc");
			$("tr:odd").css("background","#ccffff");
			$("table tr").mouseenter(function(){
				$(this).css("background","#CCC");
			}).mouseleave(function(){
				$("tr:even").css("background","#ccffcc");
				$("tr:odd").css("background","#ccffff");
			});
			$("#mohu").focus(function(){
				$(this).val("");
			});
			$("#mohu").blur(function(){
				var val = $(this).val();
				if(val ==""){
					$(this).val("请输入用户名");
				}
			});
		});
</script>
</head>
<body>
	<div class="one1">
		会员管理->分页查询会员信息
		<hr>
	</div>
	<h2>用户信息</h2>
	<div class="c">${erorr}</div>
	<form action="selectuserzhongzhuan?curpage=1&pagesize=10" method="post">
		<select name="iid">
			<option value="0">按身份名称</option>
			<c:forEach items="${intlist}" var="in">
				<c:if test="${iid eq in.iId}">
					<option selected="selected" value="${in.iId}">${in.iName}</option>
				</c:if>
				<c:if test="${iid ne in.iId}">
					<option value="${in.iId}">${in.iName}</option>
				</c:if>
			</c:forEach>
		</select>
		<input type="text" value="${mohu}" id="mohu" name="mohu">
		<input type="submit" value="查   询">
	</form>
	<table id="t" border="1" class="t">
		<tr class ="border_bottom_empty">
			<th>用户名称</th>
			<th>身份名称</th>
			<th>性别</th>
			<th>年龄</th>
			<th>出生日期</th>
			<th>联系电话</th>
			<th>联系地址</th>
			<th>积分</th>
			<th>操作</th>
		</tr>
		<tbody>
		<c:forEach items="${list}" var="user">
			<tr>
				<td width="10%">${user.uName}</td>
				<td width="10%">${user.iName}</td>
				<td width="10%">${user.uSex}</td>
				<td width="10%">${user.uAge}</td>
				<td width="20%"><fmt:formatDate value="${user.uDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td width="10%">${user.uPhone}</td>
				<td width="10%">${user.uAddress}</td>
				<td width="10%">${user.uIntegral}</td>
				<td width="10%">
					<a href="deleteevaluate?cid=${user.uId}&curpage=${param.curpage}&pagesize=10"><img title="删除商品" src="images/tubiao3/删除 (1).png"></a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pager">
		<tr09:pager mohu="${mohu }" url="selectuserzhongzhuan" pagesize="10" total="${total }" iid="${iid }" curpage="${param.curpage }"/>
	</div>
</body>
</html>